Put carbs_calculator in private method