Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:2/2
K:G
['ADFD ADGB ADFD G2', 'G2 AG F2 AF', 'G2 dB']  
X:1
L:1/8
M:2/2
K:G
 dB | ADFD ADGB | ADFD G2 GB | ADFD ADGF | (3EFE cA G2 FG | ADFD ADGB | ADFD G2 FG | AGAc BABc | 
 dBcA G2 || AG | F2 AF cFAG | F2 cA G2 AG | F2 AF cFAC | dBcA G2 AG | F2 AF cFAG | F2 cA G2 (3ABc | 
 dfec dc (3ABc | dBcA G2 || dB | A2 Ac B2 Bd | ABAF G2 dB | A2 Ac B2 Bc | dBcA G2 dB | AFAc BGBd | 
 ABAF G2 (3ABc | dfec dc (3ABc | dBcA G2 ||  