Infinante menu question

In making one using the tutorial, where do you place the second code that is givin? Thanks, I have everything else working except for the loop of the menu. Thanks