passed level 8 by changing a few lines of code need to refactor