Improved Object class.

Added InstanceOf method.