Added basic classes for interaction between server and client