Bach’s fugues became models for future generations. Composers from later periods studied Bach’s fugues in order to learn how to write their own. For example, Dmitri Shostakovich, a 20th century composer, wrote preludes and fugues in the same style as Bach.