Edited the sample json and updated the handler functions