Use references and const in Object