Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/8
M:4/4
K:D
['', 'f d3 edef dBAF E2 FE DA', 'dfaf bfaf gfec'  
X:1
L:1/8
M:4/4
K:D
 e |: f d3 edef | dBAF E2 FE | DA (3AAA BAFG | ABdf g2 ag | f d3 edef | dBAF E2 FE | 
 DA (3AAA BAdf | edBA dfag :: fddc dfaf | bfaf gfec | dfaf g2 bg | fedf e2 ge | f d3 dfaf | 
 bfaf gfec | dBAF ABdf | edBA dfag :|  