added preliminary code to calculate scores for test cases based on
history.