  In this work, we present a class of relativistic and well-behaved solution to
Einstein's field equations for anisotropic matter distribution. We perform our
analysis by using the Buchdahl ansatz for the metric function grr. Three
different classes of new exact solution are found for anisotropy factor(delta).
We have analyzed our model with various physical aspects such as pressure
(radial as well as transverse), energy density, anisotropy factor, mass,
compactness parameter, adiabatic index(gamma) and surface redshift. A graphical
analysis of energy conditions, TOV equation and causality condition indicates
the model are well behaved. The physical acceptability of the model has
verified by considering compact objects with similar mass and radii, such as 4U
1820-30,Vela X-1, PSR J1614-2230, LMC X-4, SMC X-1, 4U 1538-52, Her X-1, Cyg
X-2, PSR B1913+16 and PSR J1903+327.
