Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/2=90
M:2/2
K:G
['BA G2'  
X:1
L:1/8
Q:1/2=90
M:2/2
K:G
"G" B4 B2 AB | d2 B2 BA G2 |"Em" B4 d3 B |"D" ABAG E2 D2 |"G" B4 B2 AB | d2 B2 BA G2 | 
"D" ABAG E2 F2 |"G" G4 G4 ::"G" g4 g3 e | d2 B4 Bd |"Em" g4 gfga | b e2 e e2 f2 | 
"G" gaba"Em" g3 e |"G" dged"Em" BA G2 |"D" ABAG E2 F2 |"G" G4 G4 :|  