Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:4/4
K:G
['G2 dG', 'g3 b agab']  
X:1
L:1/8
M:4/4
K:G
 G2 dG eGdB | GdBG AGED | G2 dG eGdG | AGEG AdBA | G2 dG eGdB | GdBG AGEG | AGEG A2 Bd |1 
 eaaf gedB :|2 eaaf gede || g3 b agab | gbag gede | g3 b agab | gdBG AGED | g3 b agab | 
 gbag agef |1 gedB c3 d | eaaf gede :|2 gedB A2 Bd | eaaf gedB ||  