Creating common classes for client and server apps