implemented equals/hashCode for newObject
moved print(Object) to Objects