updated toString method to display correctly