Passing arguments with primative and reference values