used the toString method on println