Add add_rules method to Calculator