Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:3/4
K:G
['(3BAG B4']  
X:1
L:1/8
M:3/4
K:G
 D2 |"G" G4 (3BAG | B4 A2 |"C" G4 E2 |"G" D4 D2 | G4 (3BAG |"Em" B4 AB |"D" (d6 | d4) B2 | 
"G" d4 (3BAG | B4 A2 |"C" G4 E2 |"G" D4 D2 | G4 (3BAG |"D" B4 A2 |"G" (G6 | G4) |]  