use explicit constructor to initialize the variable points