finished class learningHPBF