Which type of rock is heated enough to melt and eventually cools?