wirte max points on a line this question but have errors