example source code modernization