5 functions of a grinding machine