Fundamentals of AI Exercise 2