Introduce Point structure

* refactor front-end code
Use def with parentheses when there are parameters.