adding json and some beginnings of the code