Redefined the variable name.  replace attr to prop method.