she was so very much outside his experience : an inventor , a scientist , and middle class , with a marked preference for the company of young ladies and an eccentricity of dress that was too restrained to be unstudied .