Teaching students about artificial intelligence and machine learning