  In static and spherically symmetric spacetime, we solve the Einstein Maxwell
equations. The effective gravitational potential and the electric field for
charged anisotropic fluid are defined in terms of two free parameters. For such
configuration, the mass of the star as a function of stellar radius is found in
terms of two aforementioned parameters, subjected to certain stability
criteria. For various values of these two parameters one finds that such mass
radius relationship can model stellar objects located at various regions of
Hertzsprung-Russel diagram.
