It really doesn't appear that you did the program at all. Do you own the book? Because you really need to read it. Not trying to be a jerk, but it's not fair to come on the website and ask us to summarize the programming chapter for you because you forgot what it said or never read it in the first place. I'll give you this hint, it's at the end.