Implementation of a server based on Hamstercoders' task.