Created toString() and a helper method for the toString()