while loop in combination with an expression to check.