the use of case
the use of function
the use of while
the use of for
wrong declare