The Kama factories management system at the end of the XVIII century