Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/16
M:2/4
K:G
['gfed g2d2', 'e2e2 dgg2 dgg2 e2a2 a2ga bagf gfed', 'baga bagb']  
X:1
L:1/16
M:2/4
K:G
 gfed g2d2 | d2d2 d2ef | gfed g2d2 | ABcd e2e2 :: dgg2 dgg2 e2a2 a2ga | bagf gfed | egfa g2g2 :: 
[K:Gmin] baga bagb | agfg agfg | baga bagb | a2d2 d4 :|  