The shared classes used by server and client.