let's call this method `extract_dimensions`