Implemented addRule()