Introduce Point structure

* refactor front-end code