An iterative method for fixed point problems and variational inequality problems