Refactor: make server class-based
Compile