Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/16
M:2/4
K:G
['d4 d2ef gfed BAGA', 'abag f2d2 f2a2'  
X:1
L:1/16
M:2/4
K:G
 d4 d2ef | gfed BAGA | B2e2 dBed | B2A2 A2Bc | d4 d2ef | gfed BAGA | B2d2 gfga |1 b2a2 g2>e2 :|2 
 b2a2 g2>d2 || B2d2 gfga | b2a2 abag | f2d2 f2a2 | g2f2 e2>d2 | B2d2 gfga | b2a2 abag | 
 f2d2 f2a2 |1 g4 g2>d2 :|2 g4 g2e2 ||  