Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:4/4
K:G
['DG G2', 'dg g2', 'G2 dG', 'B3 G']  
X:1
L:1/8
M:4/4
K:G
 DG G2 AG G2 | DG G2 cAFA | DG G2 AG G2 | defd cAFA :| dg g2 ag g2 | dg g2 agfe | df f2 af f2 | 
 defd cAFA | dg g2 ag g2 | dg g2 agfg | afge fde^c | defd cAFA |] G2 dG BGdG | G2 dG cAFA | 
 G2 dG BGBc | defd cAFA | G2 dG BGdG | G2 dG cAFA | GABG ABcA | defd cAFA |] B3 G A3 G | 
 B3 G cAFA | B3 G ABcA | defd cAFA :|  