separated cli from quiz algorithm