Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:4/4
K:D
['FDAF GFED FDAF', 'A3 B']  
X:1
L:1/8
M:4/4
K:D
 FDAF GFED | FDAF G2 AG | FDAF GFEc | dBcA G3 A | FDAF GFED | FDAF G3 A | FDAF GFEc | dBcA G2 FA || 
 A3 B cAGE | A3 B cded | cAAB cAGE | dBcA G3 B | EAAB cAGE | A3 B cdeg | f3 d e3 c | dcAF G2 AG ||  