The Roles Of Motivation And Attention In Lifelong Learning