Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
['gfg efg', 'DED cAA'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
 d | gfg efg | dec BAG | gfg efg | dBG A3 | gfg efg | dec BAG | AFA BGB | cAF G2 :| z | DED cAA | 
 Bdg dBG | DED cAA | DBG A3 | DED cAA | Bcd efg | dec BcA | BGF G2 :|  