add define/create/get method in model