Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/4
M:4/4
K:G
['B3/2 c/ d B A2 G2', 'd B'  
X:1
L:1/4
M:4/4
K:G
|: B3/2 c/ d B | A2 G2 | A3/2 B/ A E | A3 z | B3/2 c/ d B | A2 G2 | A B A3/2 G/ | G3 z :: c B c d | 
 e2 B2 | d B A G | A3 z | B3/2 c/ d B | A2 G2 | A B A3/2 G/ | G3 z :|  