Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:6/8
K:D
['d2 e fga c2 d', 'A3 F2 G AFd AFB AFD G2'  
X:1
L:1/8
M:6/8
K:D
 d2 e fga | c2 d efg | dcB AGF | GEA FDA | d2 e fga | c2 d edc | dcB EA^G | A3- A3 |] F2 G AFd | 
 AFB AFD | G2 A AFA | ecd cBA | def fed | efg gab | agf eAc | d3- d3 |]  