Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
M:4/4
K:G
['d>B G>A B2', 'd>g g>g']  
X:1
L:1/8
M:4/4
K:G
|: d>B G>A B2 B>c | d>B G>A B2 A2 | d>B G>A B2 B>c | d>e d>B A2 G>B :| d>g g>g f>d d>A | 
 d>g g>g f>f f>e | d>g g>f e>f g>e | d>B B>B A2 G>B | d>g g>g f>d d>A | d>g g>g f>d d>a | 
 b2 g>f e>f g>e | d>B B>B A2 G>B ||  