Sample code for JVM Concurrency series Part 2