TYPE stats_rec IS RECORD
(F_NAME student.FIRST_NAME%TYPE,
L_NAME student.LAST_NAME%TYPE,
NO_BOOKS number);
Change the first line as :
TYPE stats_rec IS OBJECT

I have not tried.

Tamil