Assignment 2 Word analysis Solution