finished code for lesson 12 While Iterations and Reading Data