Show how to use generators directly.