common classes between the server and the client