removing matching methods out of rule class and into rule book