programmatic rendering of grades