Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
['GBd edB', 'def gfg agf'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:G
 D | G3 GBd | edB dBA | GAG GBd | edB AFD | GAG GBd | edB gfg | edB AGA | BGG G2 :| B | def gfg | 
 agf edB | def gfg | agf e2 B |1 def gfg | agf efg | edB AGA | BGG G2 :|2 def gbb | faa efg | 
 edB AGA | BGG G3 |]  