LearnBot working -- program refactor