a mineral is a type of matter.