Added clear() method to the ClassLibrary class.