Compose music following the outlined musical form presented in alphabet characters, along with the provided motif.
X:1
L:1/8
Q:1/4=112
M:4/4
K:D
['A2 D2', 'F2 A2']  
X:1
L:1/8
Q:1/4=112
M:4/4
K:D
"^Allegretto" AG | GFED FGAF | BAGF{F} E3 B | A2 D2 FG A2 | BcdA F2 AA | D2 d2 d3 f | e2 E2 E3 D | 
 F2 A2 BdcB | A2 D2 F2 A2 || d3 e defd | cdef e2 fe |{e} d2 A2 F2 A2 | BcdA F2 AA | D2 d2 d3 f | 
{f} e2 E2 E3 D | F2 A2 BcdB |{B} A2 D2 FG A2 ||  