Adding json files and logic of program