Refactorred the rules class