added draft of Network class