Adding support for inner anonymous classes

Closes #27 
`checkState`