Refactoring
Freeing memory