fourth homework for artificial intelligence 2937597