step: sandstone is a kind of sedimentary rock and quartzite is a kind of metamorphic rock & class is a property of a rock and includes values of sedimentary / metamorphic / igneous
inference: sandstone is in the class of sedimentary rock and quartzite is in the class of metamorphic rock