Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
['d2 B', 'dfa afa bge'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
 F | DED F2 A | dfe d2 B | AFA def | afd e2 F | DED F2 A | dfe d2 B | d2 B AFA | dAF E2 :| z | 
 dfa afa | bge edB | dfa afa | bge e2 f | dfa afa | bge edB | d2 B AFA | dAF E2 :|  