AI Homework - problem 7, solved var list add poly