Solve exercises for chapter #4

All tests green =]