An automatic grading tool for coding assignments