Added part of implementation of server