Added test2.cpp with List