added train wagons to constructor of train class