Construct a melodic piece using the designated alphabetic pattern and the provided musical theme.
X:1
L:1/8
M:2/4
K:G
['EA AB cd']  
X:1
L:1/8
M:2/4
K:G
|:"Am" EA AB | cd e2 |"G" G>F GA | GE ED |"Am" EA AB | cd e>f |"G" ge dB |"Am" A2 A2 :: a>g ab | 
 ag"D" ef |"G" g>f ga | ge ed |"Am" ea ab | ag"D" ef |"G" ge dB |"Am" A2 A2 :|  