Example in #1971 using Shogun code style.