entered code through Ch8 (still problem with graphing)