First stab at new kata. I'm too tired to recurse.