public void printBookData(boolean writeHeader, String fileNameBookData){
        try{
            String outputFileName = folder + fileNameBookData;
            FileWriter writer = new FileWriter(outputFileName, true);
            if (writeHeader){
                writer.write("EffSpread;");
            }
            int sz = EffSpread.size();
            for (int i = 0; i < sz; i++){
                writer.write(EffSpread.get(i) + ";" + "\r");
            }
            writer.close();
        }
        catch (Exception e){
            e.printStackTrace();
            System.exit(1);
        }
        try{
            String outputFileName = folder + "QuotedSpread.csv";
            FileWriter writer = new FileWriter(outputFileName, true);
            if (writeHeader){
                writer.write("QuotedSpread;");
            }
            int sz = QuotedSpread.size();
            double sum = 0.0;
            for (int i = 0; i < sz; i++){
                sum += QuotedSpread.get(i);
            }
            writer.write((double) (sum / sz) + ";" + "\r");
            writer.close();
        }
        catch (Exception e){
            e.printStackTrace();
            System.exit(1);
        }
        try{
            String outputFileName = folder + "depth.csv";
            FileWriter writer = new FileWriter(outputFileName, true);
            if (writeHeader){
                writer.write("depth;");
            }
            writer.write(((double) depths[1] / depths[0]) + ";" +
                     ((double) depths[2] / depths[0]) + ";" +
                     ((double) depths[3] / depths[0]) + ";" +
                     ((double) depths[4] / depths[0]) + ";" + "\r");
            writer.close();
        }
        catch (Exception e){
            e.printStackTrace();
            System.exit(1);
        }
    }