Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:6/8
K:D
['e d>BA', 'g>eg a>Aa'  
X:1
L:1/8
M:6/8
K:D
 e |:"D" d>BA A2 B | dfe dBA |"G" d>BA B2 g |"A" aAa f2 e ::"D" d>ef"G" g>eg |"A" a>Aa f>ed | 
"D" d>ef"G" g>eg |"A" a>Aa f2 e |"D" d>ef"G" g>eg |"A" a>Aa f>ef |"D" d>BA"G" B2 g |"A" a>Aa f2 e | 
"D" d>ef"G" g>eg |"A" a>Aa f>ef |"D" d>ef"G" g>eg |"A" a>Aa f2 e |"D" d>ef"G" g2{G} A | 
"D" a2{G} A"A" f>ef |"G" d>BA B2 g |"A" aAa f2 e ||  