in relation to thermodynamics how does refrigerator works?​