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:D
['a3 ece edB', 'Ace g3 a3 bag fed f/g/af g2', 'dBA ABA dBA A/c/BA a/g/ed c3 edd'  
X:1
L:1/8
M:6/8
K:D
|: a3 ece | edB BAA | eaa ece | dcB Ace | a3 ece | edB BAB | GBd gfe | fdB Ace :: g3 a3 | bag fed | 
 f/g/af g2 e | gdB def | gfg aga | bge egb |1 age dBA | ABA Ace :|2 age dBe | A/c/BA a/g/ed |: 
 c3 edd | edB dBA | ABA dBA | A/c/BA a/g/ed | c3 edd | ede gab | age dBe |1 A/B/ce a/g/ed :|  