almost done the cs283 web service assignment, adding in functions to be run