Added toString method to Contacts class