new class Sever created and some mistakes were corrected.