working principles of grinders