Initial commit of model and ruleset
Add more date functions
Change name of model