Got the initial applyRule to work
for matching and non matching. Not sure if it handles all edge cases
yet.