Sedimentary rocks can roughly be classified according to how they form: