#6 - separated server logic in RpcServer class.