Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:2/2
K:Gmin
['d2 B2']  
X:1
L:1/8
M:2/2
K:Gmin
 A2 | (Bc) d2 (ed) (cA) | B2 (AG) G3 A | (Bc) (de) f2 f2 | d2 B2 f3 d | e3 f g2 a2 | b2 B4 B2 | 
 (de f2) A3 B | c2 d2 e3 f | d3 d =e3 =e | ^f2 g2 a3 a | b2 d2- d2 ^f2 | g2 b4 ag | 
 (^fd) (cB) c2 d2 | B2 G4 |]  