principle of work of a mills