Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/2=120
M:2/2
K:G
['BAGB d2 d2 BGBd cdcB ADFA', 'BGBd cdcB ADFA'  
X:1
L:1/8
Q:1/2=120
M:2/2
K:G
|: B4 BAGB | d2 d2 BGBd | cdcB ADFA | dedc BDGA | B2 B2 BAGB | d2 d2 BGBd | cdcB ADFA |1 
 G3 A G2 DG :|2 G3 A G2 Bd |: g2 gf efge | d2 d2 BGBd | cdcB ADFA | dedc BGBd | g2 gf efge | 
 d2 d2 BGBd | cdcB ADFA |1 G3 A G2 Bd :|2 G3 A G2 z2 |]  