Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:2/4
K:D
['fA fg eA ef', 'a>g f>e d2 |1 d/d/d/d/ d>c B>A'  
X:1
L:1/8
M:2/4
K:D
"D" fA fg |"A7" eA ef | gg/f/ ga |"D" gf/e/ de | fA fg |"A7" eA ef | ag/f/ gf/e/ |"D" df d z :: 
"G" B/B/B !>!g2 |"D" A/A/A !>!f2 |"A7" e>d cB |"D" PBA AA |"G" B/B/B !>!g2 |"D" A/A/A !>!f2 | 
"A7" e>A Bc |"D" df d z ::[K:G]"G" B/B/B/B/ Bc | dB g2 |"C" e/e/e/e/ eg |"G" d2 B2 | 
"D7" a/a/a/a/ a>g | f>e d2 |1 d/d/d/d/ d>c |"G" B>A G2 :|2 d/d/d/d/ ef |"G" gb g z |]  