Music notation was developed in the Middle Ages to help singers learn and perform Gregorian chants. A monk named Guido D'Arezzo invented the first system for writing down pitch in the 11th century by adding lines and colors to manuscripts to indicate vocal ranges. Over subsequent centuries, his system evolved into the modern musical staff with the addition of clefs to assign pitches to specific lines or spaces. Guido's innovations helped spread musical literacy and allowed for the proliferation of new religious music during a time when the Catholic Church was the dominant cultural institution in Europe.