you can define struct point instead of two variables.