changed structure of client file to have a main class which contains the code