Although Gray 's plays about the misadventures of middle-class intellectuals sometimes seemed to have gone out of fashion , he was respected by heavyweight collaborators including playwright Harold Pinter , who directed several Gray works , and Bates .