The chemistry of matter