How does the transfer of energy happen?