updated example so that it gets the dimensions via inq_var.