creating simple network chat using ruby