Added class method to create weakPointerObject