solution modified to add studentlib