Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:Dmix
['AG F2 FA GF D2 de (3fed', 'D2 fg agfa gfeg fd e^c d=c'  
X:1
L:1/8
M:4/4
K:Dmix
 AG | F2 FA GF D2 | de (3fed d^cAF | G2 GF GFDE | FdcA G2 AG | F2 FA GF D2 | de (3fed d^cAG | 
 AdcA GcAG | F2 D2 D2 :: fg | agfa gfeg | fd e^c d=c A2 | agfa gfde | fdgf e2 fg | a2 ge f3 e | 
 d^cde fdAG | AdcA GcAG | F2 D2 D2 :|  