update States Tutorial part 2

Explanation of yaml file with matching line numbers
Merge pull request #19245 from manonthemat/develop

update States Tutorial part 2