What level of modification is required to avoid copyright infringement? It seems like most code is based on another example at some level.