  We model a compact relativistic body with anisotropic pressures in the
presence of an electric field. The equation of state is barotropic with a
linear relationship between the radial pressure and the energy density. Simple
exact models of the Einstein-Maxwell equations are generated. A graphical
analysis indicates that the matter and electromagnetic variables are well
behaved. In particular the proper charge density is regular for certain
parameter values at the stellar centre unlike earlier anisotropic models in the
presence of charge. We show that the electric field affects the mass of stellar
objects and the observed mass for a particular binary pulsar is regained. Our
models contain previous results of anisotropic charged matter with a linear
equation of state for special parameter values.
