Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
Q:1/8=128
M:4/4
K:A
['E2 c2 d>c e2 A>B', 'd2 d2'  
X:1
L:1/8
Q:1/8=128
M:4/4
K:A
|: E2 | c2 d>c e2 A>B | A2 BA G2 B>c | d2 c>d f2 G>e | c6 E2 | c2 d>c e2 A>B | A4 G2 B>c | 
 d2 c>d f2 G>e | A6 :: c2 | c2 d>c f2 c>f | e4 d2 d2 | d2 e>d g2 dg | f4 e2 e2 | a2 e2 c2 B2 | 
 ^Ag fe dF G=A | c2 ^E>=E B2 F2 | A6 :|  