Add main function and display the train set by plot figure