Objective-J solution.

Reviewed by @tolmasky.