redefine highlight function to be a method that takes a pointer to a Word