A ruby version of the original Demerit grading script