Added base rule class

Base rule class will act as a parent for every rule class. Will include common methods used in rule classes.