Made attributes protected to make them accessible to extended classes. Made rules attribute static.
Merge pull request #8 from searsaw/make_attributes_protected_to_make_accessible_to_extended_classes

Made attributes protected to make them accessible to extended classes. M...