Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/4
Q:1/4=100
M:2/4
K:G
['B3 c', 'B d g3/2'  
X:1
L:1/4
Q:1/4=100
M:2/4
K:G
 d | B3 c | d3 e | d b a g | f2 e2 | A3 B | c3 d | e f e d | B3 c | B3 c | d3 e | d b a g | f2 e2 | 
 a2 b2 | c' a f3/2 e/ | d d e f | g3 d || B d g3/2 d/ | B d g3/2 f/ | g b a g | f2 e2 | 
 f g a3/2 g/ | f g a3/2 g/ | f g f e | d2 d3/2 c/ | B d g3/2 d/ | B d g3/2 f/ | g b a g | f2 e2 | 
 a2 b2 | c' a f3/2 e/ | d d e f | g3 ||  