Refactoring and some code from tutorial