implemented recommend method in Learner