Support inner class

This pull request will close #7 .