Quality of life and functional class in patients with heart failure