added accessor and toString method