Nested State Code