Added Licence to code