It was complicated. I understood it, mostly, but I had to think a little sideways to do it.
or simply: