created simple data folder and simplified its code to 100 lines