finished Point.java for assn3