Composers like Alexander Scriabin, Karol Szymanowski, Sergei Rachmaninoff, Claude Debussy and Olivier Messiaen wrote preludes in the style of Chopin. Other composers who wrote preludes included Felix Mendelssohn, Franz Liszt and Max Reger. There were also composers who were inspired by the music of Bach and started writing Preludes and Fugues, such as Dmitri Shostakovich, whose collection of Preludes and Fugues for piano are, just like Bach and Chopin's, written in all the major and minor keys.