Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:2/2
K:D
['F2 DF', 'fddc d2']  
X:1
L:1/8
M:2/2
K:D
 A | F2 DF G2 EG | F2 DF Afec | dD D/D/D G2 EG | FABc dcdA | F2 DF G2 EG | F2 DF Afec | 
 dAFA G2 EG | FABc d3 || g | fddc d2 Ag | fddB ceeg | fddc d2 AF | GBAF Addg | fddc d2 Ag | 
 fddB ceeg | fdcd BgAf | GBAF Add ||  