Added example for a custom iterator