Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/4
M:2/2
K:G
['d d', 'B B'  
X:1
L:1/4
M:2/2
K:G
 d d d e/f/ | g d B G | d2 c2 | d d d e/f/ | g d B G | d2 B2 :: B B B A/B/ | c B A G | A2 G2 :|  