Assignment 2 in artificial intelligence