This clearly has some problems but I don't know why. I had a look at the while loops in the lessons where they were explained, but can't see the problem.