Source code for the third homework Software university