Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:G
['A B2 G c2 A', 'G2 c Bcd def g2 g g3', 'B2 G'  
X:1
L:1/8
M:6/8
K:G
 D | G2 G FED | E2 F G2 A | B2 G c2 A | B2 G c2 A | B>cd E2 E | ABG FED | E>FG AFD | G3 G2 :: c | 
 Bcd def | g2 g g3 | B2 B Bcd | e2 e e3 | dcB cde | dBd D2 D | E>FG AFD | G3 G2 :: A | B2 G c2 A | 
 B2 G c2 A | B>cd E2 E | ABG FED | B2 G c2 A | B2 G B>cd | E>FG AFD | G3 G2 :|  