it takes heat from a warmer layer of earth and transforms it into energy as it rises through the tube , then is replaced by cooler air which falls through the tube to the bottom and is heated again , christy .