Chopin was greatly influenced by Johann Sebastian Bach when he wrote these preludes. Each of the works in the collection is in a different major or minor key, with not one being left out, just like Bach's 24 preludes and fugues in "The Well-Tempered Clavier". But unlike Bach, Chopin arranges the preludes in order through the circle of fifths. The first prelude in the set is in C major, the next in A minor, then G major, E minor, and so on, until the last two, which are in F major and finally D minor.