Implemented Client class and resused code from linux chat program