<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __execute_rot(self, surface):
 """Executes the rotating operation"""

        self.image = pygame.transform.rotate(surface, self.__rotation)
        self.__resize_surface_extents()