Added C++ list functionality