Implementing the create operation