Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:Amin
['AE E2 A2 AB cBce a4 fd', 'a4 ae^ce aece afdf afdf gdBd gdBd'  
X:1
L:1/8
M:4/4
K:Amin
 AE E2 A2 AB | cBce a4 | fd d2 ec c2 | BABc B2 ^g2 | ae e2 a2 ab | aged c2 c2 | BcBc BeBe | 
 B^gBg a4 :| ae^ce aece | afdf afdf | gdBd gdBd | gece gece | fdAd fdAd | ecAc ecAc | BcBc BeBe | 
 B^gBg a4 :|  