Compose a piece incorporating the provided motif while adhering to the given musical structure.
X:1
L:1/8
Q:3/8=100
M:12/8
K:D
['def Bcd cde ABc dcB', 'A2 a agf fed gfe edc fed'  
X:1
L:1/8
Q:3/8=100
M:12/8
K:D
 d | def Bcd cde ABc | dcB AGF Edc d2 D | def Bcd cde ABc | dcB EA^G A3 A2 || a | agf fed gfe edc | 
 fed dcB cde ^A2 f | gfe dcB (B3 B2) c | dDd dcB efe edc | fFf fed cde Aag | fed Adc (d3 d2) |]  