Design and analysis of a heat pump applied to old apartment buildings