Code review - rules code