Exercise04: testing lists for errors