Modernize example project. Fix #406.