Refactored send method of Network class