Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:G
['Gd d2 d2 e2 e2 dedc B2']  
X:1
L:1/8
M:4/4
K:G
 Gd | d2 d2 e2 e2 | dedc B2 Gd | d2 d2 e2 e2 | dedc B2 d2 | A6 B2 | G4 A4 | BdeB d2 Ac | B4 z2 |]  