Exercise 3_5 (List.setHead)