Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:D
['d/e/f/g/ a>d f>a d>f'  
X:1
L:1/8
M:4/4
K:D
 f |"D" d2 A>G FD FA |"Em" B>e g/f/e/d/"A7" c>d e<f |"D" d2 A>G FD FA |"Em" B<g"A7" e>c"D" d2 d :: 
 f |"D" d/e/f/g/ a>d f>a d>f |"Em" g>b"D" a>d"A7" c<e e>f |"D" d/e/f/g/ a>d f>a d>f | 
"G" g<b"A7" c>e"D" dd d2 |"D" d/e/f/g/ a>d f>a d>f |"Em" g>b"D" a>d"A7" c<e e>f | 
"D" (3def"Em" (3gab"D7" (3fga"G" (3gab |"D" (3fga"A7" ce"D" d2 d |]  