Rocks are classified as igneous, metamorphic, or sedimentary according to
how they formed