Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/4
Q:1/4=180
M:2/2
K:D
['A G'  
X:1
L:1/4
Q:1/4=180
M:2/2
K:D
 A G |"D" F3/2 G/ F E |"D" D2 G F |"A7" (E3/2 D/) C D |"A7" E2 C D |"A7" (E A) A A | 
"E7" (^G B) B G |"A7" A4- |"A7" A z A G |"D" F3/2 G/ F E |"D" D2 G F |"A7" E3/2 D/ C B, | 
"A7" A,2 |: A G |"D" (F3/2 D/) D D |"A7" (C E) G C |"D" D4- | D z :|  