Added sample code for list and vectors.