Added solution: #2 exercise chap04