Rules class introduced to allow for rule branches