class -> type throughout doc