Homework 6 done (AI)