extracting class to files