How Supervised Learning Works