I added the rule.java file to my branch so i can write some more methods utilizing the rule class