Lesson 8 - Peaks (from scratch)