machine learning example for testing and learning