The role of the user model in learning as an internally and externally directed activity