public FreightCar(Integer grossWeight,
            String goodsType) throws TrainException{
		super(grossWeight);
		if (!(goodsType.equals("G")||
				goodsType.equals("R")||
				goodsType.equals("D"))){
			throw new TrainException("Invalid goods type for freight car");
		}
		this.goodsType = goodsType;
	}