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
['B2 AG', 'a3 f defa'  
X:1
L:1/8
M:4/4
K:G
|: B2 AG DG G2 | B2 AG A3 G | FDFG A2 fe | decA BG G2 | BDAD GD D2 | B2 AG A3 G | FDFG Adfe | 
 decA G3 z :: a3 f defa | defa g3 e | edaf defd | eggf g3 d | a3 f defa | faag fdfa | fdab c'bag |1 
 fgaf g3 z :|2 fgaf gedc ||  