updated learningAI class