simplifying point class