Implemented Batch trait for both light and heavy variants.
Ported the examples to use batches