Let S be the set of points (a,b) in the coordinate plane, where each of a and b may be -1, 0, or 1. How many distinct lines pass through at least two members of S?