When I try your method, I get an insanely large negative number as the result. -92559631349317830736831783200707727132248687965119994463780864.00 That was the output for the shipcost. Not sure how to fix this so I can get an accurate output of the shipping cost unique for each derived class.