Add constructor to Network class.