Artificial Intelligence II Assignment 2 Solution