Develop melodies by incorporating the given motif and following the suggested musical layout.
X:1
L:1/8
M:4/4
K:D
['d2 d>c d>BA>G F>DF>A d>AF>A G>AB>G E2', 'b>ag>a f>dA>F'  
X:1
L:1/8
M:4/4
K:D
|: (3edc | d2 d>c d>BA>G | F>DF>A d>AF>A | G>AB>G E2 e>f | g>ec>e d>cB>A | d2 d>c d>BA>G | 
 F>DF>A d>AF>A | G>AB>G E2 e>f | g>ec>e d2- :: d>A | d>fa>f g>ec>A | d>a^g>a b>ag>a | 
 f>dA>F G2 e>f | g>e (3eee g>ec>A | d>f (3fff g>fg>a | b>a^g>a b>ag>a | f>dA>F E2 e>f | 
 g>ec>e d2- :|  