In the Classical music period the minuet and trio were used in symphonies and sonatas. They usually formed the third movement of a four movement work. Haydn, Mozart and Beethoven all wrote minuets and trios. Gradually the minuets became faster so that they were called scherzos. By the 19th century the waltz had become fashionable among the new middle class. The polite minuet went out of fashion.