assignment-2 Trains&GUI