updated nested_squares example with new fix