Pass data in an object