add spaghetti code for test
add json example file
add model and updated index templates