class BaroneAdesiWhaleyModel {

  protected double sCrit(final double s0, final double k, final double r, final double b, final double t, final double sigma, final boolean isCall) {
    if (isCall) {
      final CallSolver solver = new CallSolver(s0, k, r, b, t, sigma);
      return solver.getSStar();
    }
    final PutSolver solver = new PutSolver(s0, k, r, b, t, sigma);
    return solver.getSStar();
  }

}