Let me know if there are some constraints that we should pass a object rather than a const reference.