Q : Main loop and error input
Q : correct previous commit