homework patch
"else break" at the end of cycle fixed
+ check argc
removed global variable
+ interactive editing
- global variable