Added licence to the code