Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['A3 G', 'A2 Bd eaag a2 ga b3 a']  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
"^A dorian" G2 | A3 G ABcd | efed cAAB | c2 cA B2 BG | AcBA GEED | A3 G A2 (3Bcd | efed cA A2 | 
 g2 fg e2 dc | BedB A2 :| Bd | eaag a2 ga | b3 a geef | g2 ef gfef | g2 af gfed | c2 cA B2 BG | 
 AcBA GEED | g2 fg e2 dc | BedB A2 :|  