modified point_t class