WYRL: begun working on a class for calculating the complexity of a rewrite rule.