added a lastOpened property to Class and wrote a getLastOpenedClass method in the model