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