Sedimentary deposits are classified on the basis of