Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:2/2
K:D
['', 'A,2 D2 DG (FE)DF (AB)AF Acdc |1', 'afdf edcd efge fddf afdf edef d2', 'efge (3(fga) (ec) dBAF G2 (FD)'  
X:1
L:1/8
M:2/2
K:D
 A,2 |: D2 DG (FE)DF | (AB)AF Acdc |1 (TBA)Bc (dB)AF | (EG)FD (TED)B,E :|2 (Bd)ce (dB)AF | 
 EGFE D2 |] (!fermata!eg) | fddf afdf | edcd efge | fddf afdf | edef d2 (3(ABc) || defg afdf | 
 edcd efge | (3(fga) (ec) dBAF | G2 (FD) EDB,E |]  