Io Day 2 ex 5 refactoring and ex 6