The first part of the homework 5