Added code that extracts the contents of the classes