Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/4
M:4/4
K:G
['(3B/d/g/ b b g/f/g/e/ d d B', "d' c'", 'B B B/c/ d'  
X:1
L:1/4
M:4/4
K:G
 (3B/d/g/ | b b g/f/g/e/ | d d B G | F/G/A/B/ c e | e/d/^c/d/ B (3B/d/g/ | b b g/f/g/e/ | d d B G | 
 F/G/A/B/ c/d/e/f/ | g g g :|[K:D] e | d d B/d/g/b/ | d' d' b b | d' c' =c' a | e' d' c' d' | 
 d d B/d/g/b/ | d' d' b3/2 b/ | d' c' =c' a | g b g :|[K:G] A | B B B/c/ d | B B B/c/ d | 
 c c/d/ c/B/ A | c c/d/ c/B/ A | B B B/c/ d | B B B/c/ d | c c/d/ c/B/ A | G B G :|  