These two lines are repeated three times; make a function. After that, you might be able to write things like `value = map(this_new_function, value)` below.