Classification of igneous rocks -- i) Mineralogical composition