Foundations of AI and ML