Implemented a network class.