Nested classes working properly.