split the file to two classes