Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/2
K:D
['d2 d>d', 'e2 e2 fddf geeg afec A2 c>d'  
X:1
L:1/8
M:2/2
K:D
|: A2 | d2 d>d d>AF>A | d2 d>d d3 e | fefg afed | c>de>e e2 :: e2 | fddf geeg | afec A2 c>d | 
 e>cA>c e>aa>g | f2 d>d d2 :|  