Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:G
['d edBA B G3', 'dBAB G3'  
X:1
L:1/8
M:4/4
K:G
 BddB G2 Bd | d2 Bd edBA | BddB GABd | gedB A3 d | edBA B G3 | BGAG EAGE | D G3 DGBe |1 
 dBAB G3 A :|2 dBAB G3 d || edBA B G3 | BGAG EGDd | edBA BGGA | BddB A3 d | edBA B G3 | BGAG EAGE | 
 D G3 DGBe |1 dBAB G3 d :|2 dBAB G3 A ||  