Code visualization and grading