Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:6/8
K:Dmin
['DEF E2 D d2 e f2 g'  
X:1
L:1/8
M:6/8
K:Dmin
 E |"Dm" DEF E2 D | d2 e f2 g |"F" agf edc | AcA"C7" GEC |"Dm" DEF E2 D | d2 e f2 g | 
"F" agf"A7" ed^c |"D" d3 D2 || e |"F" f>ga fga | fga agf |"C" ecg ecg | ecg gfe |"F" f>ga agf | 
"C" efg gfe |"Dm" def"A7" ed^c |"D" d3 D2 |]  