Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:A
['e>Ac>A (3cde', 'a>gf>e f<ag>f'  
X:1
L:1/8
M:4/4
K:A
 f | e>Ac>A (3cde f2 | e<Ac>A B2 Bf | e>Ac>A (3cde a2 | A<Ac>B A2 A :| g | a>gf>e f<ag>f | 
 a/g/f/e/ a>c B2 Bg | a>gf>e f<ag>f | (3agf (3efg a2 e>g | (3aga (3geg (3fdf (3ece | 
 d>bc>a B2 B>d | (3cde f2 (3cde a2 | A<Ac>B A2 A |]  