Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/2=90
M:2/2
K:C
['A^GAB Adfd Bege dcBA', 'd2 edef ecAG Fgfg ecA^G A^GAB AFDF'  
X:1
L:1/8
Q:1/2=90
M:2/2
K:C
 C |[K:D] uaedS Maed b Pa udave!p!FG | A^GAB Adfd | Bege dcBA | A^GAB AFDF | EDEF E2 FG | 
 A^GAB Adfd | Bege dcBA | Adfd Bgec | d2 d2 d2 :: d2 | edef ecAG | Fgfg ecA^G | A^GAB AFDF | 
 EDEF E2 FG | A^GAB Adfd | Bege dcBA | Adfd Bgec | d2 d2 d2 :|  