created models and controllers for Rules and Contractors