added print-list function and call it in main-test
added main-train-test
changed object parameter