make while-loop a function with two arguments - ex33