Scientists classify rocks mainly according to which feature?

their color

how they form

their hardness

where they are found