Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/16
M:2/4
K:G
['G2ga gedc BAGB AGED GAGE DCB,C', '[GB]2 z2 a b4 a gfge d4'  
X:1
L:1/16
M:2/4
K:G
 D2 | G2ga gedc | BAGB AGED | GAGE DCB,C | DEDC B,G,2D | G2ga gedc | BAGB AGED | GAGE DCB,C | 
 D[GB]2[GB] [GB]2 :: z2 | a b4 a | gfge d4 | e2<a2 abag | egab a2g2 | a2<b2 b2>a2 | gage d2>B2 | 
 d2ef gedc | BBAF G2 :|  