add train in main.py