Create musical composition by adhering to the given musical structure represented by letters and integrating the given motif.
X:1
L:1/4
M:3/4
K:G
['B d']  
X:1
L:1/4
M:3/4
K:G
 G | (B2 A) | G B d | e3 | d2 G | B2 B | d c B | (A3 | A) z d | g2 g | f d B | e2 e | d G A | 
 B d B | A G A | (G3 | G) z :|  