Simplified generator example