refactor: abstracted std::cout out of print_progress