seperated classes in client.py into a separate file.