added an intro for the performance section and modernized the example code