best grade and worst grade scenario not hardcoded