Update and rename transition.cc to rule.cc