Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:D
['faaf dfaf g2 bg ecAg fedc dafd']  
X:1
L:1/8
M:4/4
K:D
 faaf dfaf | g2 bg ecAg | fedc dafd | cdef gfge | faaf afdf | gfgf edBF | A F3 ABde | faeg fd d2 |]  