Added xmax/ymax and Linear constructor