Move article generation to own method convert_list

We do not want to have actual code in main()