implemented PUT and DELETE