Demo code for blog post Advanced ListView