Update demo programs to use new list API