Update linear.py