Refactoring and adding rpec tests