Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:Amix
['e>def g2 ea', 'eAed eAAg BGdB'  
X:1
L:1/8
M:4/4
K:Amix
 a | edef g2 fe | BGdG Bcda | e>def g2 ea | BGdB AAAa | cdef g2 fe | dgBg dgBa | e>def g2 ea | 
 BGdB AAA || a | eAed eAAg | BGdB dBGa | eAed eAAg | BGdB AAAa | eAed eAAg | BGdB dBGa | 
 edef gaeg | dgBg AAA ||  