Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:2/2
K:G
['D<GGD EDGB d<BgB A2 AG D<GGD EDGD', 'AGAB G2'  
X:1
L:1/8
M:2/2
K:G
 D<GGD EDGB | d<BgB A2 AG | D<GGD EDGD | (3EFG DB, G,2 G,B, :: gab<g d2 df | gab<g e2 ef | 
 g<be<g d<gBG |1 AGAB G2 Gf :|2 AGAB G2 GE ||  