In the process of implementing the problem 5.