Implemented the create method