toString method working