added partial implementation of network