Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:2/4
K:G
['G2 z']  
X:1
L:1/8
M:2/4
K:G
 d2 BA | G2 z d | dcBA | G2 z G | BBBB | c2 cc | AAAA | d2 dd | dcBA | G2 z2 |]  