Changed Word constructor to accept an IndexWord