coded the new and create methods