Oh btw I copy-pasted this from a project of mine but you should be taking care of choosing a license for your work