modified Terrain class