Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['D>EF>G A2 B>c d/d/d e>f d2 c2', 'B>c d/d/d e>f d3'  
X:1
L:1/8
M:4/4
K:D
|: D>EF>G A2 B>c | d/d/d e>f d2 c2 | B/B/B g>B A/A/A f>A |1 G>FE>D (C<E) E2 :|2 B/B/B e>c d3 A |]: 
 a>gf>e d2 e>f | g>fe>d (3cBA (3GFE | D>EF>G A2 B>c | d/d/d e>f d3 A :|  