changing tuple to Point2D record
Adding UI