Compose a piece using the specified musical pattern based on the alphabet notation and provided melodic motif.
X:1
L:1/8
M:2/2
K:G
['d2 BG', 'agef g2 bg']  
X:1
L:1/8
M:2/2
K:G
 d2 BG EGBG | AGBd B E3 | d2 BG EGBG | (3Bcd ea agge | d2 BG DGBG | AGBd B E3 | d2 BG EGBG | 
 (3Bcd ea agef || g2 bg ageg | agab agef | g2 bg agbg | dega bggd | gabg ageg | a2 ab agef | 
 gabg efge | dega bg g2 ||  