Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:1/8=180
M:2/4
K:D
['Ad df e/d/c/d/', 'cA Ad'  
X:1
L:1/8
Q:1/8=180
M:2/4
K:D
"^moderate" A | Ad df | e/d/c/d/ ea | fd Be | d2 cA | Ad df | e/d/c/d/ ed | cA B^G | A2 z || d | 
 cA Ad | cA Ad | c/d/e/f/ gf | f2 ed | cA Ad | cA fd | c/d/e/f/ gc | d4 |]  