Add field 'match' that shows the rule applied to create the state.

Also, test2.py shows the solution that was shown in class.