Part of Artificial Intelligence assignment 3