Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:G
['D BBB B2', 'gfg agf'  
X:1
L:1/8
M:6/8
K:G
 D | BBB B2 D | BBB B2 d | gfe dcB | d2 c A2 B | ccc c2 D | ccc c2 e | edB dcA | GBd g2 :: f | 
 gfg agf | bag agf | gfg bag | fdd def | gfg agf | gab bag | gab agf | g3- g2 :|  