Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/2=60
M:4/4
K:G
['d3 d']  
X:1
L:1/8
Q:1/2=60
M:4/4
K:G
 GA | B2 B2 A2 cA | G2 F2 G3 D | GABc d3 d | efge d3 d | g3 f e3 d | ^cBAG F2 z A | d2 d2 Befg | 
 d2 ^c2 d2 z d | g3 g f3 f | e3 e{e} d3 d | d<B e2 c<A d2 | B2 ^c2 !fermata!d2 z | 
 F3 G A2 !fermata!G2 | B2 B !fermata!c!fermata!B z B | (Ae)(dc) (cB)(dB) | (Ae)(de) (cB)(dB) | 
 (cB)(AB) (cB)(cd) | (ed)(ef) !fermata!g2{A} | B3 c"^tr" A4 | G4 |]  