Fix rspec problems, and finish the exercises of cap 3 and 4