added error checked quadratic exercise