Craft melodious tunes in accordance with the outlined letter representation and the provided thematic element.
X:1
L:1/8
M:2/2
K:G
['d2 (BG) AGEF', 'g2 (dg) egdg']  
X:1
L:1/8
M:2/2
K:G
 (uBc) | d2 (BG) AGEF | G2 (Bd) efge | d2 (BG) AGEF | GBAF G2 :| (Bd) | g2 (dg) egdg | 
 g2 (bg) agab | g2 (dg) egdg | edef g2 (ga) | b/b/b (ga) bgef | gage defa | b2 (af) gfed | 
 egfa g2 |]  