Initial work on the InstanceOf function
Other work for instanceOf