Merged Client and Server classes into "Network" to simplify and work w one socket only