simple application for machine learning algorithm