Develop melodic phrases by utilizing the given motif and following the predetermined musical arrangement.
X:1
L:1/8
Q:1/8=150
M:4/4
K:D
['d2 d>d', 'A2 d2 e2 e>e e2 f2 g2'  
X:1
L:1/8
Q:1/8=150
M:4/4
K:D
 A2 | d2 d>d d2 f>d | B2 B>B B>cd>B | A2 A>B AGFE | D2 D>D D2 (3ABc | d2 d>d d3 f | fee>e e2 d2 | 
 c>Bf>d c>AB>^G | A2 A>A A2 :| d2 | e2 e>e e2 f2 | g2 g>g g2 e2 | f3 f/a/ aggf | fee>e e2 A2 | 
 B2 g>e c2 a>f | dd d/e/d/c/ ee e/f/g/e/ | ffg>e d2 c2 | d2 d>d d2 :|  