Artificial Intelligence Assignment 3 Solution