add note of rule.cpp