Oh, the reason why I don't like it is because I find it hard to read. I was wondering if we could rewrite it using recursion (I haven't tried, so maybe it won't make it clearer...)