this is almost there--need to figure out the syntax for checking whether the point is empty or not