Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
Q:1/8=128
M:4/4
K:D
['f<d B>d A2 F2 F<A']  
X:1
L:1/8
Q:1/8=128
M:4/4
K:D
|: g | f<d B>d A2 F2 | F<A d>f g<e e>g | f<d B>d A2 F2 | F<A d>e f<d dg | f<d B>d A2 F2 | 
 F<A d>f g<e e>g | f<d B>d A2 F2 | F<A d>e f<d dg | f<a a2 f<a d'2 | e>f e>d c<e e>g | 
 f<a a2 f<a d'2 | A>B d>e f<d d>g | f<a a2 f<a d'2 | e>f e>d c<A A2 | B<d c<e d<f e<g | 
 f<b a>g f<d d :|  