Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:Amix
['A2 c>A', 'A2 c>A'  
X:1
L:1/8
M:4/4
K:Amix
|: A2 c>A d2 B>G | A2 c>A d2 c>A | B2 g>e d2 B>G | A2 c>A d>B e2 :| A2 c>A g2 B>G | A2 c>A a2 c>A | 
 a2 c>A g2 B>G | A2 c>A d>B e2 | A2 c>A a2 B>G | A2 c>e a<ea>e | g>a (3gfe d<gB<g | 
 e<a (3efg (3Bcd e2 ||  