ItemGenerator class