Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:D
['d>fe>d c>A (3ABc', 'd2 f>g a>af>a f>ed>c B>cB>c A2 a2'  
X:1
L:1/8
M:4/4
K:D
|: F>G | (3ABA F>D A>dd>e | d>fe>d c>A (3ABc | B>AG>B (3ABc d2 | E2 (3EFG A>FE>F | 
 A,2 (3ef^g a2 A2 | B>AB>c d2 e2 | d>fe>d c>A (3ABc | d2 f2 d2 :: f>g | a>af>a f>ed>c | 
 B>cB>c A2 a2 | g>ag>f g>fe>d | e2 (3ef^g a2 A2 | (3aba (3gfe d>ef>e | B>AB>c d2 e2 | 
 d>fe>d c>A (3ABc | d2 f2 d2 :|  