TASK 2 accepting Q as quit