Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/16
M:2/4
K:G
['G2GA G2D2 GABA G4 d2(ef) g2d2', 'B4 dBdB .e2.e2 (cB)(cA) d4 (GA)(Bc) d2g2'  
X:1
L:1/16
M:2/4
K:G
 G2GA G2D2 | GABA G4 | d2(ef) g2d2 | dedc B4 :: dBdB .e2.e2 | (cB)(cA) d4 | (GA)(Bc) d2g2 | 
 B2(cA) G4 :|  