Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=128
M:4/4
K:D
['', 'A,>C DF', 'Af f2 Ag g2'  
X:1
L:1/8
Q:1/8=128
M:4/4
K:D
 C>B, |: A,>C DF Ad fa | (3(fed) f>d e<A e<A | A,>C DF A>G F>D | E<A ^G<B c<A A2 | A,>C DF Ad fa | 
 (3(fed) f>d e<A e<A | A,>C DF A>G F>D | E<A, E<A, A<D D2 :: Af f2 Ag g2 | f>a f>d c>e cA | 
 (3(fed) A>d Bd gb | A<d c<e f<d d2 | Af f2 Ag g2 | (3(fag) (3(fed) (3(Bed) (3(cBA) | 
 (3(GFE) DF B,D GB | (3(Afd) (3(cge) f<d d2 :|  