Finish 3.5.2 exercise