Replacing the use of the size() function with the length attribute.