Word classes and sentential functions