Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:2/4
K:G
['a2 g dd cB |{B} d2 G', 'dc BA z2 GB{B} dc B A2'  
X:1
L:1/8
M:2/4
K:G
 dd ef | gg{g} a2 g | dd cB |{B} d2 G z | dd ef | g<g a2 g | dd cB |{B} d2 G z |:{B} d2 B2 | 
{B} c2 A2 | GB{B} dc | BA z2 | GB{B} dc | B A2 F | G4 | G z z2 :| F8 ||  