CMPE273 assignment1 --- Restful webservice