artificial intelligence tutorial - P2MAL