Create melodies by incorporating the provided musical pattern and motif.
X:1
L:1/8
M:4/4
K:G
['DG (3GFG', 'd2 bd adgd', 'Bd d2'  
X:1
L:1/8
M:4/4
K:G
|: DG (3GFG AGBG | DGAG AGEG | Accc Bdgb | aged BAGE | DG (3GFG EGCE | DG (3GFG AGEG | Accc Bdge | 
 dBAB G4 :: d2 bd adgd | d2 bd adgd | e2 c'e beae | e2 c'e bc'ab d2 bd adgd | d2 bd adgd | 
 cEGc BA (3GAB | AGFA G4 :: Bd d2 ed d2 | Bd d2 ed^cd | ce e2 fddf | ce e2 ed^cd | Bd d2 ed d2 | 
 gd d2 ed^cd | cEGc BdGB | ADFA G3 z :|  