toString method changed to __toString