Classification of rocks