A C++ program with a linked list implementation