an introduction to artificial intelligence the four types