Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:3/4
K:G
['z B']  
X:1
L:1/8
M:3/4
K:G
|: B>A d4 | e>d a4 | g>d B2 dc | B2 A4 | A>B A2 Gd | (d2 c2) f>e | d4 A2 | B6 | z B e3 e | 
 ^d^c B4 | =d2 =f3 e | eB c4 | ABceb>a | (a2 g2) z B | (f2 e2) z G | ed d2 F2 | G6 :|  