changed mechanics of program, miss interpeted the question
changed text of CookBook markdown