Code ownership, or who actually owns the copyright to the code that was produced, is both a local and an international issue - as many companies enter into contracts thinking that they have code ownership, while the programmers also go into the same contracts thinking that they have code ownership. The laws in different countries may vary, so it is important to spell out these issues clearly in contracts that are binding in multiple jurisdictions.