changed class Point to struct Point