Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:4/4
K:G
['G3 A Bdgd B2 BG AE E2', 'gfed B3 A GABd egfa gfed g3', 'GABd egfa']  
X:1
L:1/8
M:4/4
K:G
|: G3 A Bdgd | B2 BG AE E2 | BGAF GABd |1 egfa gedB :|2 egfa g4 |: g3 a bgaf | gaba gfed | 
 B3 A GABd | egfa gfed :| g3 a bgaf | gbaf gfedBdAB GABd | egfa g4 ||  