Design and implement a classification algorithm by using decision tree approach.