Added GetNext example code