Ch5 code review