Create melodies by incorporating the provided musical pattern and motif.
X:1
L:1/4
M:3/4
K:D
['A/d/ d3 c2 G/B/ B3 A2 A/f/', 'd B d'  
X:1
L:1/4
M:3/4
K:D
 A |"D" f3 | f e d |"A7" (e3 | e) z A | (e3 | e) d c |"D" (d3 | d) z A | f3 | f e d |"G" B3 | 
 B g e |"D" d2 f |"A7" a2 c |"D" (d3 | d) z A/d/ ||"A7" d3 | c2 G/B/ |"D" B3 | A2 A/f/ |"A7" f3 | 
 e2 A/e/ |"D" e3 | d2 A/d/ |"A7" d3 | c2 G/B/ |"D" B3 | A2 A/f/ | f3 |"A7" f2 e |"D" d3 | d z z |] 
[K:G]"G" d B d | e3/2 e/ !>!d | z B3/2 B/ |"D7" c3/2 c/ !>!F | z d3/2 d/ | e3/2 e/ !>!d | 
 z c3/2 c/ |"G" B3/2 B/ G | d B d | g z f | g z ^g |"Am" a2 z | e2 z |"D7" d ^d e | f B A |"G" G3 | 
 G z z |]  