Why using System.out. in equals function? I think this should be cleaned up.