got  the grade input working