removed white space
extracted json_from_url, set_attributes_from_json from initialize