Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:4/4
K:D
['DEFA defe dBBA B2 AF', 'D2 a3 b afdf gfed Bdef g2'  
X:1
L:1/8
M:4/4
K:D
|: DA, A,2 DEFA | defe dBBA | B2 AF ABde | fede fe e2 | dA A2 DEFA | defe dBBA | B2 AF ABdB | 
 AFEG FD D2 :: a3 b afdf | gfed Bdef | g2 gf gbag | fgaf egfe | dB B2 AFEF | DF F2 ABdf | 
 af f2 dBAF | Aaag fd d2 :|  