Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/4=120
M:6/8
K:D
['edB ABG', 'g faa'  
X:1
L:1/8
Q:1/4=120
M:6/8
K:D
"^Moderately Quick" A | d>ef edB | ABG F2 D | (FA)A AFA | Bee edB | def edB | ABG FED | FAA AFA | 
 (Bd)d d2 :: g | faa (ag)f | (gb)b (ba)g | (fa)a (agf) | (gfg) e2 g | faa agf | gbb bag | fed eag | 
 (fdd) d2 :|  