Draft of server from lab1.2