When heat is lost and an object becomes cold, what happens to the atoms?