"Once you figure what it's trying to do", taking a look at the test examples is very useful for that, and that's what I ended up doing. :-)