make a vector
use integration method getNPoints.
move integrationmethod into private section.