Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:G
['B3 c3', 'g3 def g2 a bag'  
X:1
L:1/8
M:6/8
K:G
|: B3 c3 | ded cAG | F3 DED | DGG FGA | B3 c3 | dcA d2 e | fed cAF | AGF G3 :: g3 def | g2 a bag | 
 f3 dfg | afd cAG | g3 def | g2 a bag | fed cAF | AGF G3 :|  