adding more functionality to the JSON project