hammer mill and its functions