Code added to my Entry class to pass the first test case.