Create list.cpp

List code which is used for the demo. We won't be using this.