Output list correctly