extract class to files