Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['d2 (AG) FDAF', 'D g a/g/f/e/ da fgaf g/f/e/d/ =cg'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
"^Reel." uf | d2 (AG) FDAF | E=cGc E=CCE | d2 (AG) FDAF | GE=cE D/D/D D :: g | a/g/f/e/ da fgaf | 
 g/f/e/d/ =cg efge |1 afdf fgaf | ge=ce d/d/d d :|2 fdge afbg | e=cge d/d/d d |]  