added str function to class