The idea was of course to write a recursion. No points from this one, but you can try again until next Friday.