added foreach looping example