replaced Point class with java.awt.Point