added Point class
using Point class