The role of encouragement in achieving a goal