Working example of network simulator