added rules to model and changed input type ofbody