Implementing the create and update operations