AI homework 2