Refactoring and adding tests