improved challenge 3 solution, now matches words from English dictionary
did challenge 4