Final code with data and folders