Implement custom iterator type for lot_t