in class json exercise