<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __handle_events(self):
 """This is the place to put all event handeling."""

        events = pygame.event.get()
        for event in events:
            if event.type == pygame.QUIT:
                self.exit()