Created methods to update and delete objects