Wrote first version of server