Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:4/4
K:G
['BG (3GGG', 'Gfge d2 Bd', 'Bdgd edgd (3Bcd', '']  
X:1
L:1/8
M:4/4
K:G
 BG (3GGG BGdG | BG (3GGG Bdgd | (3BcB Ad B2 cB | AGFG AB (3cBA :| g2 e dGBd | g3 e fgaf | 
 Gfge d2 Bd | cBAG FGAB | Gfge d2 Bd | gfge fgag | (3bag (3agf gedB | cBAG FGAB || Bdgd edgd | 
 (3Bcd gd BG (3GGG | (3ABc gc acgc | (3ABc gc BG (3GGG | Bdgd edgd | (3Bcd ef g3 a | 
 (3bag (3agf gedB | cBAG FGAB || [B,G]4 ||  