adding new files, and start to create the final algoritm