A self-structuring two-port network