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