refine MyTerrain class