Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:2/2
K:D
['F2 A>d f>dA>F', 'a2 f>d']  
X:1
L:1/8
M:2/2
K:D
 A>G | F2 A>d f>dA>F | G2 B>d g>dB>G | F2 A>d f>dA>F | E2 A>c e>cA>G | F2 A>d f>dA>F | 
 G2 B>d g2 a>g | (3faf d>f (3ege c>e | d2 c2 d2 :: fg | a2 f>d A>df>a | g9/4 e/c/ A>ce>g | 
 a2 f>d Adgf | (3efe (3dcB A2 f>g | a2 f>d A>df>a |1 g>ec>e g2 a>g | f>af>d B>ge>c | d2 c2 d2 :|2 
 g>fe>f g>ba>g | (3faf d>f{a} g>ec>e | d2 c2 d2 ||  