Added code to print the packages in order