How matter is classified