Adds RulesComposer class and tests