added methods for Point constructor