Collatz sample, with application injection at client