Creating objects with Object constructor; Fixing the instanceof operator