add list class practice in STL