Polishing the code in list exercises.