completed chapter 4 with ruby