Added the tests and source code for laboratory work nr2