How Rocks Form Through Magma Crystallization