Added agm_rule.h agm_rule.cpp files