Adding classes to create json and save to file