Fixed bug in reading in from terminal while loop.
Merge https://github.com/croznik/programmingskills2