changed structure to match example