Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
M:4/4
K:D
['dB AGFE', 'defg a2 f2'  
X:1
L:1/8
M:4/4
K:D
 dB | AGFE DEFG | A2 d(d d2) dB | AGFE DEFD | G2 E(E E2) dB | AGFE DEFG | A2 d2 d3 e | fdfa gfec | 
 A2 dd d2 :: A2 | defg a2 f2 | edef g2 fe | defg a2 f2 | edcB A3 A | defg a2 f2 | edef g3 e | 
 fafd egec | A2 d2 d2 :|  