using an object