Produce melodies following the designated musical arrangement and the given motif.
X:1
L:1/8
M:3/4
K:D
['a2 d2', 'B2 c2'  
X:1
L:1/8
M:3/4
K:D
|: a>b a2 d2 | a>^g a2 d2 | g>a g2 c2 | d2 f>d A2 | a>b a2 d2 | a>^g a2 d2 | g>a g>e c2 | A2 d4 :: 
 A>D B2 c2 | d>A e2 f2 | g2 g>e c2 | f2 d4 | (3ABA B2 c2 | (3ded e3 f | (3gag e2 c2 | d2 D4 :|  