Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:D
['faab afdf']  
X:1
L:1/8
M:4/4
K:D
 f d3 e B3 | dcde faag | fdd=c AB=cB | AFdF EF D2 | d3 f e B3 | dcde faag | fdd=c AB=cB | 
 AFdF EF D2 | faab afdf | afdf gfed | faab afdf | gfed Bcde | faab afdf | abaf g2 ga | 
 (3(agf) gf gfef | g2 gf gaag |]  