word analyzer code added