As stars get older they produce heavier chemical elements. The content of heavy elements helps to estimate the age of a star and to categorise it.