divides the src files in different files according to their functions