Artificial Intelligence class homework