Working code (with some bugs) | generates a web page with student data sorted by department