AI Assignment #2 Solution