Terraces and ditches to prevent erosion