Add getNext example and fix existing ones.