Attempted to create code to render in xml and json