Rearranged print statements in main()