Added getTotalCost function to order class