added main class for server