Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:D
['dB AFdB', 'a2 af']  
X:1
L:1/8
M:4/4
K:D
 dB | AFdB AFDF | AFdB A2 dB | AFdB ABde | feef e2 dB | AFdB AF D2 | A2 dB ABde | faaf gfef | 
 dBAF D2 || Ac | d2 fg abaf | g2 ge abaf | defg abaf | bfaf e2 dB | defg a2 af | bagb a2 af | 
 gfeg f^efd | e^def d2 ||  