Class redesigned
Make a generic server class