Did exercise 1.5
Commented out test line to avoid infinite while loop