SMS: Foundations of machine learning