How machine learning works, simplified