Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/16
M:2/4
K:G
['d2d2 d2>d2 cBAB GGAB c2c2 c2>c2 |1', 'fed2 c2cg B2B2 |1 AGAc BAG2 :|2'  
X:1
L:1/16
M:2/4
K:G
 d2d2 d2>d2 | cBAB GGAB | c2c2 c2>c2 |1 ABcd cBAG :|2 ABcd G4 |: d2d2 g4 | gfga fed2 | c2cg B2B2 |1 
 AGAc BAG2 :|2 AGAB G4 ||  