videos 33 and 32 refactoring code and solving errors