Create a composition based on the provided motif, following the specified musical form.
X:1
L:1/8
M:6/8
K:D
['A d2 d', 'f2 f', 'e2 e'  
X:1
L:1/8
M:6/8
K:D
 A |:"D" d2 d d2 f | fed"A7" e2 A | e2 e e2 g | gfe"D" f2 f | d2 d d2 f | fed"A7" c2 z | efg agf | 
 edB A2 a ||"D" f2 f f2 f | fga"A7" g2 g | e2 e e2 e | efg"D" f2 f | d2 d d2 d | def"A" e3 | 
 b2 b a2 a | gfe"D" d3 :|  