making terrainmanager nested class