<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def step(self) -> None: """ Runs a single event of the simulation. """

        event = heappop(self._events)
        self._ts_now = event.timestamp or self._ts_now
        event.execute(self)