add define/create/get method in model
Merge pull request #43 from miller/master

add define/create/get method in model