adding delete method and skeleton for update