modified list.cpp and add templ3.cpp