Avoiding the usage of state