Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:4/4
K:G
['BGAF G2 Bd gedc BGAG BGAG', 'g2 ge'  
X:1
L:1/8
M:4/4
K:G
 (dc) | B2 AG BGAF | G2 Bd gedc | BGAG BGAG | F(DEF) G2 dc | B2 (AG) BGAF | G2 Bd gedc | 
 BGAG BGAG | FDEF G2 :: ef | g2 ge fgaf | g2 ge fddf | g2 ge fgaf | bgef g2 (3def | g2 ge fgaf | 
 gfge fddg | bgag bgag | fdef g2 :|  