learningHelper refactored #2