Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:4/4
K:Gmin
['g2 d=f cdfg', 'BGdG Bcd=e fdcf AFcA']  
X:1
L:1/8
M:4/4
K:Gmin
 g | dg{a}g^f g2 d=f | cdfg dfcf | dg{a}g^f g2 dg | fdcA G2 GA | Gg{a}g^f g2 d=f | cdfg afcf | 
 d^fga bag=f | dfcA G2 G || d | BGdG Bcd=e | fdcf AFcA | BGdG Bcdg | fdcA{A} G2 Gd | BGdG Bcd=e | 
 fdcf AFcA | GABc d=efg | fdcA{A} G2 G ||  