Compose melodies that adhere to the given musical framework, integrating the provided motif.
X:1
L:1/8
M:3/4
K:D
['A d>c B3 e A>G A3 A', 'd3 A'  
X:1
L:1/8
M:3/4
K:D
 A d>c | B3 e A>G | A3 A g>f | e3 A e>a | f3 A d>c | B3 e A>G | A3 A g>f | e3 d a>d | d3 :: A a>c | 
 d3 A a>G | A3 A B<d | e3 A g>f | f3 A d>c | B3 e A>G | A3 A g>f | e3 d a>d | d3 :|  