added license
Refactoring