Got the example working in IntelliJ.