Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['D2 (3FED', 'fdcA dggf'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 z D | GBAF G2 AF | D2 (3FED ADFD | DGGF GABc | dcde fdcA | GBAF GBAF | D2 (3FED ADGF | DGGF GABc | 
 dfeg fdcA || dggf gbag | fd d2 fdcA | dggf g2 fg | agbg aggf | dggf gbag | fgef defg | 
 (3agf ge fdec | dfeg fdcA |"^final" G8 |]  