Make grade function independant from our coursera stuff