Added a licence to the code