[Update]: Adding implementation to functions in Lab_2. [ArtyomRusak]