created Topology class