Passing one object as data