`x` is not a very informative variable name -- it might be better called something like `operation`.