implemented first version of create