Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['dB B2', 'G4 g3 d edd^c dged edBA G3'  
X:1
L:1/8
M:4/4
K:G
 GBde dB B2 | ABcd BGFG | Ec c2 DBde | dB B2 A3 B | GBde dB B2 | ABcd BGFG | Ec c2 Dgfe | 
 dB (3cBA G4 :| g3 d edd^c | dged edBA | G3 d BGBd | gedB ABcA | d3 e dB B2 | ABcd BGFG | 
 Ec c2 Dgfe | dB (3cBA G4 :|  