add classes Rule and PartialRuleset and start implementation of ruleset parsing