Improve the next/previous example