implements the type word