client class now working