very basic intro to networking in java