I'm reading a book called "A Guide to Thermal Physics" by Chris McMullen and I came across a passage that does not entirely sit well with me.
" It may seem very intuitive to want to associate absorption of heat with an increase in temperature and heat loss with a decrease in temperature, as suggested by the equation for heat capacity. However, the heat that an object exchanges with its surroundings does not necessarily go toward changing the temperature of the object – it is also related to the work done and to latent heat of transformation. For example, a system may absorb heat and use this thermal energy exclusively to do work, without changing temperature, or a substance may absorb heat and use this thermal energy to undergo a phase transition rather than change temperature. The important point is that a process that is isothermal may not be adiabatic, and a process that is adiabatic may not be isothermal. That is, a system can absorb heat without changing temperature, and a system can change temperature without exchanging any heat."
How can a system change temperature without exchanging heat? Also, he says a system can use thermal energy to do work - I thought that thermal energy was essentially that energy which cannot be used for work because it's just the random motion of molecules which can not be "recaptured" the way mechanical energy like pushing a piston can be reversed.