functions of the grinding machine