Construct musical melodies following the designated letter arrangement and the given motif.
X:1
L:1/8
Q:1/4=95
M:5/4
K:D
['A2 B2']  
X:1
L:1/8
Q:1/4=95
M:5/4
K:D
 A2 A2 (FG) | A4 A2 B2 A2 |[M:3/4] (FE) (D D2) E |[M:6/4] F3 F G2 A2 B2 (AG) | 
[M:7/4] E6 (FG) A2 (B2 c2) |[M:5/4] d4 A2 c2 (BA) |[M:3/4] A(F D3) E | 
[M:6/4] F2 (FG) A2 (GA)(FD) E2 | D6 |]  