Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:3/4
K:G
['D EGG']  
X:1
L:1/8
M:3/4
K:G
 D | EGG G2 D | EGG G2 D | EGG GAB | Bed B2 A/G/ | AAe/d/ BBd/B/ | A>BA/G/ E2 D | EGG G2 D | 
 EGG G2 D | EGG GAB | D>BA/B/ G2 D | EGG GAB | Bed B2 d/B/ | AAe/d/ BBd/B/ | A2 B/d/ e2 d/B/ | 
 dde g2 e/d/ | eeg a2 g/e/ | ggd/e/ ggd/e/ | gga b3 | bbb b2 a/g/ | aa/b/a/g/ e2 g/f/ | 
 eeg/e/ ddg/d/ | BBd/B/ A2 B/A/ | GBd =f2 e/d/ | eeg e2 d/B/ | ddg/e/ B2 d/B/ | AA/c/B/A/ G2 |]  