Working learner agent
Fixed merge conflicts