adding student graph functionality