Magma cools and forms this rock