made classes pulic added rule set