finished implementing RestService