artificial intelligence basics - P2MAL