Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
M:6/8
K:D
['', 'ddd fdd', 'AFA A2 B']  
X:1
L:1/8
M:6/8
K:D
 A |: ddd fdd | edd fdd | ddd fdd | edB B2 A | ddd fdd | edd fdd | def gfe | fdB B2 A :| AFA A2 B | 
 AFA A2 B | AFA def | gfe fdB | AFA A2 B | AFA A2 B | def gfe | fdB B2 d :|  