HW 2- task 1. Tests and Doxygen comments added.