Develop a musical work by incorporating the assigned alphabetic representation and given melody.
X:1
L:1/4
M:3/4
K:G
['B A']  
X:1
L:1/4
M:3/4
K:G
 D | G3/2 F/ G | A B A | G3/2 F/ G | D2 G | D3/2 E/ D | B A G | A B A | G2 |]  