Finished first version of server