Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/16
M:2/4
K:D
['dcBA F2>A2 dcBA G2>A2 cBAG', 'DEFG A2A2 DFGA B2B2 d2d2'  
X:1
L:1/16
M:2/4
K:D
 A2 | dcBA F2>A2 | dcBA G2>A2 | cBAG c2>d2 | B2>c2 A2FA | dcBA F2>A2 | dcBA G2>A2 | cBAG cdcB | 
 eABcd2 ::[K:G] G2 | DEFG A2A2 | DFGA B2B2 | d2d2 dcA2 | c2c2 cBG2 | DEFG A2A2 | DFGA B2B2 | 
 d2d2 dcBA | G2GGG2 :|  