moved client code into respective class. also integrated
moved server code into respective class. +implemented