implemented the library for the Server and added new TODOs