added Point class and used point objects as properties in Triangle