Server code

Did I do this right?

clearly i didn't