As the rain weather the rock, it erodes away parts of the rock away, so the pieces of rock fall into the river. The river, which is transportation, takes the sediments, a sand sediment (0.006 to 0.2 centimeters in size) to a deposition area. The water pressure pushes the sediments under the river bottom. With the combined pressure of both the water and some of the river bottom, compression begins. Compaction is where the sediments are pushed together by pressure. The process ends with cementation, in which the gaps between the sediments are filled with a minerals, which sort of "glue" the sediments together. Then, after all this is done, the sediments and minerals together create Sandstone. In New York, you can find sandstone in Elmira.