Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:4/4
K:G
['BD D2 BDAG EAAG', 'gdB gdB gd'  
X:1
L:1/8
M:4/4
K:G
 BD D2 BDAG | EAAG AGEG | D3 A AGEG | DEGA Bggd | BD D2 BDAG | EAAG A{B}AGE | DEGA .B/.c/d gd |1 
 BDAd BG GA :|2 BDAd BG G2 || gdB gdB gd | GA{B}AG AGef | gdB gdB gd | deed e3 f | gdB gdB gd | 
 GA{B}AG AGEG | DEGA Bdgd | BDAd BG G2 :|  