create method in model