explain the purpose of grinding machine