Contact.java working correctly