Add Train class and capacity method