Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:D
['A3 A BBAF DFAF EFDF ADFA BBAB', 'ddfd edfe']  
X:1
L:1/8
M:4/4
K:D
 A3 A BBAF | DFAF EFDF | ADFA BBAB |1 dBAF EFDF :|2 dBAF EFDA || ddfd edfe | dfed BdAB | 
 ddfd edfe | dBAF EFDA | ddfd edfe | dfed BdAB | fdef BdAB | dBAF EF D2 ||  