created client and server classes