added constructor to Rule class allowing param setting