Finished FreightCar class, passes tests