working on return by ref and cout for function return.