Splitting the main file to subclasses