Exact Solutions to a Generalized BBM Equation with Variable Coefficients 1