AI homework2