Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:6/8
K:D
['c2 E EFG', 'agf e2 A'  
X:1
L:1/8
M:6/8
K:D
 dcd e2 d | c2 E EFG | A3 ABG | F2 D DFA | d2 d ded | c2 E EFG | ABA GFE |1 D3 DFA :|2 D3 D2 e |: 
 f2 d d2 c | d2 f agf | e2 A A2 c | e2 f gfe | f2 d d2 c | d2 f agf | e2 A ABc |1 d3 d2 e :|2 
 d3 ABc ||  