Add toString() method to Entry class