replaced Terrain class with RTIN class