One of the things you do when you program is copy good code from other places.