Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/4=100
M:2/4
K:G
['AG EG']  
X:1
L:1/8
Q:1/4=100
M:2/4
K:G
 GG FG | AG EG | DG GB | A3 d | cB AG | AG EG | DD BA | G3 B | cB AG | AG EG | DG BG | G4 |]  