In the line above, type should be replaced with object.