Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:D
['cde d3', 'd2 def gfe g3 fdB Bcd d3'  
X:1
L:1/8
M:6/8
K:D
 ABc dfd | cde d3 | cde d3 | BAG FED | FAB c d2 :: def gfe | g3 fdB | Bcd d3 | g2 d cBA | ABc dfd | 
 cde d3 | BAG FED | FAB c d2 :|  