Word_handler class