Add methods constructed in the myWindow class and more expansions upon
the Train class.