new example for batch process