Added update and delete method