Ruler class in rule server
refactoring