Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/4
M:2/2
K:G
['A B', 'd2 e d c2 c c B'  
X:1
L:1/4
M:2/2
K:G
|: G A B B | c2 c c | B A B G | A2 A A | G A B B | c2 c c | B A/G/ A =F | G2 G2 :: d2 e d | 
 c2 c c | B A B c | d2 d d | d2 e d | c2 c c | B G A F | G2 G2 :|  