HW 3- task 3. Tests and comments were added.