Added sample code for collections