Develop a musical composition utilizing the presented motif and adhering to the required structure.
X:1
L:1/8
M:4/4
K:G
['B2 dB', 'g3 e d2 Bd'  
X:1
L:1/8
M:4/4
K:G
 B2 dB eBdB | B2 dB ABGA | B2 dB eBdB | cABG AGEG | B2 dB eBdB | B2 dB ABGA | Bd d2 edBe | 
 dega b3 a || g3 e d2 Bd | gfga b3 a | g3 e d2 Bd | cABG AGEf | g3 e d2 Bd | gfga b3 a | 
 gabg edBd | c2 Bc AGEA ||  