word.py is now working and put as a function will be modified later to use the way we want to