Formal definition of Machine Learning and its understanding with a simple example