functions of grinding machine