Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:9/8
K:G
['BGG dBB', 'g2 d'  
X:1
L:1/8
M:9/8
K:G
 d | BGG dBB eAA | BGG dBB g2 d | BGG dBB eAA | BGG dBB g2 d | BGG dBB ecA | BGG dBd g2 d | 
 BGG dcB ecA | BGG dBd g2 :: d | g3 dcB ecA | g3 dBd g2 d | e>fg dcB ecA | BGG dBd g2 :|  