all in one, need to split in 4 files

all in one, need to split in 4 files