split function definitions, classes, etc., into separate files