started implementaiton of saving json data to model