Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:4/4
K:D
['dfaf gfec dABG FAAc BGFG A2 fa', 'bagf g2 ge cege cege agfe a2'  
X:1
L:1/8
M:4/4
K:D
 dfaf gfec | dABG FAAc | BGFG A2 fa |1 gfec dcBA :|3 gedc d4 || a2 af dfaf | dfaf bagf | 
 g2 ge cege | cege agfe | a2 af d2 dc | dfaf bagf | gfgf gbag | fedc dcBA ||  