Design melodies by integrating the specified musical pattern and the provided motif.
X:1
L:1/8
M:4/4
K:G
['GFGA BGBd gfga bgdB cBAG FAdc (3BcB', 'gd (3Bcd'  
X:1
L:1/8
M:4/4
K:G
|: (3DEF | GFGA BGBd | gfga bgdB | cBAG FAdc | (3BcB AB GFED | GFGA BGBd | gfga bgdB | cBAG FAdc | 
 (3BcB G2 G2 :: (3Bcd | gd (3Bcd gd (3Bcd | gd (3Bcd g2 ag fdAd fdAd | fdAd f2 af | 
 gd (3Bcd gd (3Bcd | gd (3Bcd gbag | fdAG FAdc | (3BcB G2 G2 :|  