Compose melodious music utilizing the prescribed letter representation and integrating the given thematic element.
X:1
L:1/8
M:4/4
K:G
['BB BA G2']  
X:1
L:1/8
M:4/4
K:G
 G2 BB BA G2 | d2 dd d4 | B2 BB BA G2 | B2 AG A4 | f3 df e2 z | g3 fe dG A | B2 cA G2 AB | 
 c2 EE E2 | AB | A2 GF G2 z2 |]  