use walls_function.py to see how functions are incorporated