Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
Q:1/8=80
M:4/4
K:D
['d2 z2']  
X:1
L:1/8
Q:1/8=80
M:4/4
K:D
 d>e | f>edB A>FED | FAAd d3 e | f>efa Adgf | f2 e2 z2 d>e |"^5" f>edB A>FED | FAAd d3 e | 
 fefa Adfe | e2 d2 z2 f2 |"^9" e>def B2 z f | e>def B3 c | d>edB A>dgf | e2 d2 z2 e2 | 
"^13" f>gfd B>c d2 | gage cd e2 | abaf defd | Adfe d2 z2 |"^17" F>E D2 d>e f2 | GF E2 ef g2 | 
 AG F2 fgag | fefa dBAF | Adfe !fermata!d4 |]  