Add solution of the fourth homework