Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/4
M:4/4
K:G
['D D']  
X:1
L:1/4
M:4/4
K:G
 G/E/ | D D D D | G G z B/d/ | c c c d/c/ | B2 z G/E/ | D D D D | G G2 d/B/ | A A A/G/A/B/ | 
 G2 z d/c/ | B B B e | d c c c/B/ | A A A d | c B z G/E/ | D D D D | G G2 d/B/ | A A A/G/A/B/ | 
 G2 ||  