In geology, what factors determine the classification of rocks?  Place the results in a bullet list