Modified two chapter 8 files

ex.8 code error fixed

readme updated with Rubucop complaints