Added linear.java