Use an associative array to store dimensions.