Write create method