Using recursive functions to define rules

Putted recursive functions in options predefined rules