finished implementing the server part of the web service