Artificial Intelligence Homework 2