added a label on the loop
which allows us to jump out from the switch statement.
it now works. left to be done: handling errors and adding wait time between prints