Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
['D2 E F2 G AFA BGB ABc', 'f2 g', 'c dcB c2', '=g fed cec dBc d2 f edc'  
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
|: D2 E F2 G | AFA BGB | ABc def | edc d3 :: f2 g afa | bag fed | f2 g afa | ged cBA | f2 g agf | 
 e2 f gfe | fga efg | f3 d3 ::[M:6/8][K:A][Q:3/8=120] A2 E A2 c | dcB c2 B | A2 E A2 c | dcB c2 e | 
 fge ^dBd | efg a2 f | (g2 b) (e2 g) | fe^d e3 :: ecd e2 =g | fed cec | dBc d2 f | edc BcA | 
 (a2 A) (c2 A) | d2 B cde | fga A2 c | BAG A3 :|  