Here are some of the devices that you will come across in the specification:
Using a short melody, how about attempting to draw diagrams as follows? (Link 1)
Mozart: Minuet and Trio from the Eine Kleine Nachtmusik
Dvořák: Scherzo from his Symphony no.8 in G major.
Section B starts at 01:41 and section A returns at 06:07.
Look again at the table in A8. How about extending and expanding it so that you can create even more variation and contrast in the middle section? This time, you need to create a contrasting section in a piece which is in an ABA (Ternary Form) structure.
Using your ideas, compose a middle section (B) which contrasts with the main theme in terms of the number of musicla devices. Use