Coding question: easy way to copy references