How does an electroscope work?

The electroscope is the metallic device shown in the pictures above and below. The center assemby is made entirely of metal (conductor). It is isolated from the metalic circular ring by plastic (insulator). When charge was transferred from a negatively charge nylon rod, the needle deflected. Using a charge diagram and the results/observations from our class activities, explain why this happens.