How Does a Heatpump Work?