Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/2
K:D
['A2 FD D2'  
X:1
L:1/8
M:2/2
K:D
"A" A2 GE"D" FD D2 |"G" EG G2 EFGE |"A" A2 GE"D" FD D2 |"G" EF (3GFE"A" A3 B ::"A" c2 AB cdeg | 
"D" fdec dcAB |"A" cA A2 cd eg |1"D" fdec d3 d :|2"D" fdec d3 B |]  