Adding initial implementation of the server