defining create method