Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:D
['d2 AA A2 F2', 'f2 af bfaf'  
X:1
L:1/8
M:4/4
K:D
 d2 AA A2 F2 | GF E2 D4 | d2 AA A2 F2 | G2 A2 B2 c2 | d2 AA A2 F2 | GF E2 D4 | d2 dA d2 a2 | 
 gf e2 d4 :| f2 af bfaf | g2 f2 e2 d2 | f2 af bfaf | gfed Bcde | f2 af bfaf | gfed BcdB | 
 ABAF GBAG | FEDC D4 :|  