Compose melodies based on the specified pattern and provided motif.
X:1
L:1/8
M:4/4
K:D
['B2 dB A2 Bc dF F2 DFAd', 'fd d2 dfaf'  
X:1
L:1/8
M:4/4
K:D
 B2 dB A2 Bc | dF F2 DFAd | BG G2 ABde | faeg fd d2 :| fd d2 dfaf | edcd efge | fd d2 dfaf | 
 gfeg fdde | fd d2 dfaf | edcd efge | df f2 g2 fg | afge fd d2 ||  