refactored parsing to use Truck object