added instanceOf method; added constructor.parent property