Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
Q:3/8=88
M:6/8
K:D
['a/g/ fdd daf', "a2 a bgg d'c'd' aff d'c'd' egf"  
X:1
L:1/8
Q:3/8=88
M:6/8
K:D
 a/g/ | fdd daf | eAA A2 G | FAd Adg | fdd d2 a/g/ | fdd daf | eaa a2 d' | c'ba c'd'b | aaa a2 :: 
 a | bgg d'c'd' | aff d'c'd' | egf efd | cAA TA2 G | FAd Adf | dfa d'2 g | bc'd' abg | fdd d2 :|  