added constructors for point, line, and poly