Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
Q:1/4=100
M:4/4
K:A
['A2 c>d', 'e4 A2 c>d e>fea gfed c>BAf f(e/d/)'  
X:1
L:1/8
Q:1/4=100
M:4/4
K:A
|: A2 c>d | e>fea | gfed | c/d/c/B/ AE | A2 c>d | e>f ea | g(f/e/) f^d | e4 e2 f>g | a3 e | fedc | 
 (B/A/B/)c/ Be | (B/A/B/)c/ Bf | (B/A/B/)c/ Bg | ag/f/ Tf>^e | f2 z (f/g/) | agfe | 
 (^d/e/d/)c/ Bf | (d/e/d/)c/ (B/c/B/)A/ | G>F Ef/g/ | agfe | d/e/d/c/ B>a | g(f/e/) f^d | e4 || 
 A2 c>d | e>fea | gfed | c>BAf | f(e/d/) e(d/c/) | dc/B/ ca | b(a/g/) a(g/f/) | g(f/e/) (fe/d/) | 
 caBg | a4 |]  