folder structure and add function