Added separate Main.class for client and Server