In a mineral, the atoms line up in a repeating pattern to form