Added sample code from ISL chapter 02