There are 6 examples right above that code to show you how that type of function us used in that situation. You will need to learn to look at how other parts of the code work to make your coding experience easier for you and a less cumbersome for us.