added basic read-in functionality to the main method to test the changes
to the Word class