simple example of machine learning