corrected json and have tips from my professor in comment to improve program