Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['A>G F2 A2 (3BcB A2 d>ef>d B2', 'e2 e2'  
X:1
L:1/8
M:4/4
K:D
|: A>G | F2 A2 (3BcB A2 | d>ef>d B2 A>G | F>Ad>A B>cd>f | e2 e2 e2 A>G | F2 A2 (3BcB A2 | 
 d>ef>d B2 A>G | F>Ad>A B>cd>f | e2 e2 d2 :: f>g | a>fd>f a>f d2 | d>e (3fed B2 A>G | 
 F>Ad>A B>cd>f | e2 e2 e2 f>g | a>fd>f a>f d2 | d>e (3fed B2 A>G | F>Ad>A B>cd>f | e2 e2 d2 :|  