A sample engine to create and evaluate arithmetic and logical rules