For AI Programming assignment 1