how to write a discussion essay example artificial intelligence problem solving agents