toString method changed to magic method __toString