Artificial Intelligence Assignment 5 Solution