I was going through this sample code and not able to follow and understand the code ... few questions