william-gregor-1791