Add solutions for chapter 5.

@fabioyamate, @laurocaetano I'm so sleepy that I don't remember where I had to change on the last exercise, haha.