Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:C
['AGAB A2 (Bd) edBA G2', '(Bd) e^def', 'gfge (3(aba) ag e2 (ea) e^def gf(ea)'  
X:1
L:1/8
M:4/4
K:C
 BEA |[M:2/2][K:A]SOSOO .!fermata!PMTuCO(MGB) | AGAB A2 (Bd) | edBA G2 (Bd) | e^def gfea | 
 edBA G3 B | AGAB A2 (Bd) | edBA G2 (ed) | B2 (AG) gdBd | c2 A2 A2 :| (Bd) | e^def g2 (fe) | 
 a2 a2 g2 (ea) | e^def gfea | edBA G2 (Bd) | e^def gfge | abag e2 (ea) | gedg edBd | 
 c2 AA A2 (Bd) || e^def gfge | (3(aba) ag e2 (ea) | e^def gf(ea) | edBA G2 (AB) | c2 Bc d2 cd | 
 efge a2 a2 | gfea edBd | c2 A2 A2 |]  