added getRecommendation function