When molten rock cools, igneous rock is formed