Sample about dealing with complex conditional logic with the Rules design pattern