  A new singularity free model of anisotroipic compact star is proposed. The
Einstein field equations are solved in closed form by utilizing Matese \&
Whitman mass function. The model parameters $\rho$, $p_r$ and $p_t$ all are
well behaved inside the stellar interior and our model satisfies all the
required conditions to be physically acceptable. The model given in the present
work is compatible with observational data of compact objects like SAX J
1808.4-3658 (SS1), SAX J 1808.4-3658 (SS2) and 4U 1820-30. A particular model
of 4U 1820-30 is studied in detail and found that it satisfies all the
condition needed for physically acceptable model. The present work is the
generalization of Sharma and Ratanpal\cite{sharma13} model for compact stars
admitting quadratic equation of state.
