Simple example of supervised learning