Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
['EAAG A2 Ac BcdB cBAc BGGA G2', 'eaag agag e^def'  
X:1
L:1/8
Q:1/8=180
M:2/2
K:G
"^A dorian" EAAG A2 Ac | BcdB cBAc | BGGA G2 GA | (3Bcd ef gdBG | EAAB AGAB | cBAB cdef | 
 gbaf gedB | GBdB cA A2 || eaag agag | e^def gabg | eggf g2 ga | bgaf gedf | eaag agag | 
 e^def gaba | (3gfe dB GBaf | gedB cA A2 |]  