Create musical pieces by following the given structure and incorporating the supplied motif.
X:1
L:1/8
M:2/4
K:G
['Bdeg d4']  
X:1
L:1/8
M:2/4
K:G
 Bdeg | d4 | Bdeg | d4 | ga b2 | a2 g2 | edeg | d4 | ge g2 | dged | ge g2 | a2 BA | G G2 B | A4 | 
 d3 B | dedB | ABde | B2 z A | B>AGA | G4 | z3 d | b>aga | g4- | g4 |]  